<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Channel Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__axidmac__channel__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Channel Functions<div class="ingroups"><a class="el" href="group__group__axidmac.html">AXIDMAC      (AXI Direct Memory Access Controller)</a> &raquo; <a class="el" href="group__group__axidmac__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa9240c992691933a060a6e4bfbf699b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__axidmac__enums.html#ga6a5396b8cde76b34bf92edf6ee0cbd26">cy_en_axidmac_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a> (AXI_DMAC_Type *base, uint32_t channel, <a class="el" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> const *config)</td></tr>
<tr class="memdesc:gaa9240c992691933a060a6e4bfbf699b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the AXIDMAC channel with a descriptor and other parameters.  <a href="#gaa9240c992691933a060a6e4bfbf699b9">More...</a><br /></td></tr>
<tr class="separator:gaa9240c992691933a060a6e4bfbf699b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga82e2e0fbf38f4bc4c2b56a06a15809ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a> (AXI_DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga82e2e0fbf38f4bc4c2b56a06a15809ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the content of registers corresponding to the channel.  <a href="#ga82e2e0fbf38f4bc4c2b56a06a15809ff">More...</a><br /></td></tr>
<tr class="separator:ga82e2e0fbf38f4bc4c2b56a06a15809ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae25a356409f49be5da036ca9380430cd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a> (AXI_DMAC_Type *base, uint32_t channel, <a class="el" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> const *descriptor)</td></tr>
<tr class="memdesc:gae25a356409f49be5da036ca9380430cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a descriptor as current for the specified AXIDMAC channel.  <a href="#gae25a356409f49be5da036ca9380430cd">More...</a><br /></td></tr>
<tr class="separator:gae25a356409f49be5da036ca9380430cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga59a71b72242ec040773d1e41d49ef26f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a> (AXI_DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga59a71b72242ec040773d1e41d49ef26f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a AXIDMAC channel.  <a href="#ga59a71b72242ec040773d1e41d49ef26f">More...</a><br /></td></tr>
<tr class="separator:ga59a71b72242ec040773d1e41d49ef26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7fcb203a8a01a2f1bc28f6acbab761da"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a> (AXI_DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga7fcb203a8a01a2f1bc28f6acbab761da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables a AXIDMAC channel.  <a href="#ga7fcb203a8a01a2f1bc28f6acbab761da">More...</a><br /></td></tr>
<tr class="separator:ga7fcb203a8a01a2f1bc28f6acbab761da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4efb1eb324529dd7ef7a3842a69ebc8d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a> (AXI_DMAC_Type *base, uint32_t channel, uint32_t priority)</td></tr>
<tr class="memdesc:ga4efb1eb324529dd7ef7a3842a69ebc8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function is used to set a priority for the AXIDMAC channel.  <a href="#ga4efb1eb324529dd7ef7a3842a69ebc8d">More...</a><br /></td></tr>
<tr class="separator:ga4efb1eb324529dd7ef7a3842a69ebc8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga869458a072653c8569d183a235c755b7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga869458a072653c8569d183a235c755b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the priority of the AXIDMAC channel.  <a href="#ga869458a072653c8569d183a235c755b7">More...</a><br /></td></tr>
<tr class="separator:ga869458a072653c8569d183a235c755b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga81fb2d1336aa2b068e23d7332f08f60c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga81fb2d1336aa2b068e23d7332f08f60c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the enable status of the AXIDMAC channel.  <a href="#ga81fb2d1336aa2b068e23d7332f08f60c">More...</a><br /></td></tr>
<tr class="separator:ga81fb2d1336aa2b068e23d7332f08f60c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4ea857b5838f1203025cf2a38408027"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gaf4ea857b5838f1203025cf2a38408027"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the source address being used for the current transfer.  <a href="#gaf4ea857b5838f1203025cf2a38408027">More...</a><br /></td></tr>
<tr class="separator:gaf4ea857b5838f1203025cf2a38408027"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada1e3fd379f7a641c05fac4b3ed797e7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gada1e3fd379f7a641c05fac4b3ed797e7">Cy_AXIDMAC_Channel_GetCurrentDstAddress</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gada1e3fd379f7a641c05fac4b3ed797e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the destination address being used for the current transfer.  <a href="#gada1e3fd379f7a641c05fac4b3ed797e7">More...</a><br /></td></tr>
<tr class="separator:gada1e3fd379f7a641c05fac4b3ed797e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab38ae9ffdbb45f3fbc4a4984fd238d5a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gab38ae9ffdbb45f3fbc4a4984fd238d5a">Cy_AXIDMAC_Channel_GetCurrentXloopIndex</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gab38ae9ffdbb45f3fbc4a4984fd238d5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transfer X-loop index.  <a href="#gab38ae9ffdbb45f3fbc4a4984fd238d5a">More...</a><br /></td></tr>
<tr class="separator:gab38ae9ffdbb45f3fbc4a4984fd238d5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c442925ba953620a1037390711d8136"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga3c442925ba953620a1037390711d8136">Cy_AXIDMAC_Channel_GetCurrentYloopIndex</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga3c442925ba953620a1037390711d8136"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transfer Y-loop index.  <a href="#ga3c442925ba953620a1037390711d8136">More...</a><br /></td></tr>
<tr class="separator:ga3c442925ba953620a1037390711d8136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0158f30ec38c4675e652e01dcfe946ae"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga0158f30ec38c4675e652e01dcfe946ae">Cy_AXIDMAC_Channel_GetCurrentMloopIndex</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga0158f30ec38c4675e652e01dcfe946ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current transfer M-loop index.  <a href="#ga0158f30ec38c4675e652e01dcfe946ae">More...</a><br /></td></tr>
<tr class="separator:ga0158f30ec38c4675e652e01dcfe946ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadae86ad4373a92d32981c00cf76b40bd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gadae86ad4373a92d32981c00cf76b40bd">Cy_AXIDMAC_Channel_GetCurrentDescriptor</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:gadae86ad4373a92d32981c00cf76b40bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the descriptor that is active in the channel.  <a href="#gadae86ad4373a92d32981c00cf76b40bd">More...</a><br /></td></tr>
<tr class="separator:gadae86ad4373a92d32981c00cf76b40bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga912ed9c34fb9c2cc7f10b18b8c0db9a8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga912ed9c34fb9c2cc7f10b18b8c0db9a8">Cy_AXIDMAC_Channel_GetInterruptStatus</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga912ed9c34fb9c2cc7f10b18b8c0db9a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt status of the specified channel.  <a href="#ga912ed9c34fb9c2cc7f10b18b8c0db9a8">More...</a><br /></td></tr>
<tr class="separator:ga912ed9c34fb9c2cc7f10b18b8c0db9a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd8c36aaea700ddb83cea48d9ff7aa88"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gabd8c36aaea700ddb83cea48d9ff7aa88">Cy_AXIDMAC_Channel_ClearInterrupt</a> (AXI_DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:gabd8c36aaea700ddb83cea48d9ff7aa88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the interrupt status of the specified channel.  <a href="#gabd8c36aaea700ddb83cea48d9ff7aa88">More...</a><br /></td></tr>
<tr class="separator:gabd8c36aaea700ddb83cea48d9ff7aa88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab987427e7fb3cf03e3f8bb152335961f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gab987427e7fb3cf03e3f8bb152335961f">Cy_AXIDMAC_Channel_SetInterrupt</a> (AXI_DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:gab987427e7fb3cf03e3f8bb152335961f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the interrupt for the specified channel.  <a href="#gab987427e7fb3cf03e3f8bb152335961f">More...</a><br /></td></tr>
<tr class="separator:gab987427e7fb3cf03e3f8bb152335961f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e72ebb3bdd71b955406aa1cce4e9b23"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga0e72ebb3bdd71b955406aa1cce4e9b23">Cy_AXIDMAC_Channel_GetInterruptMask</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga0e72ebb3bdd71b955406aa1cce4e9b23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt mask value of the specified channel.  <a href="#ga0e72ebb3bdd71b955406aa1cce4e9b23">More...</a><br /></td></tr>
<tr class="separator:ga0e72ebb3bdd71b955406aa1cce4e9b23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae533bc0532adfedc33656af521f6ace"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC_Type *base, uint32_t channel, uint32_t interrupt)</td></tr>
<tr class="memdesc:gaae533bc0532adfedc33656af521f6ace"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an interrupt mask value for the specified channel.  <a href="#gaae533bc0532adfedc33656af521f6ace">More...</a><br /></td></tr>
<tr class="separator:gaae533bc0532adfedc33656af521f6ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga334962f73258ce7bf86e6490b9a5aaa1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga334962f73258ce7bf86e6490b9a5aaa1">Cy_AXIDMAC_Channel_GetInterruptStatusMasked</a> (AXI_DMAC_Type const *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga334962f73258ce7bf86e6490b9a5aaa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation.  <a href="#ga334962f73258ce7bf86e6490b9a5aaa1">More...</a><br /></td></tr>
<tr class="separator:ga334962f73258ce7bf86e6490b9a5aaa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35aa72e7265b5ef2b747771603e19091"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__axidmac__channel__functions.html#ga35aa72e7265b5ef2b747771603e19091">Cy_AXIDMAC_Channel_SetSwTrigger</a> (AXI_DMAC_Type *base, uint32_t channel)</td></tr>
<tr class="memdesc:ga35aa72e7265b5ef2b747771603e19091"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function is used to set a SW trigger for a channel.  <a href="#ga35aa72e7265b5ef2b747771603e19091">More...</a><br /></td></tr>
<tr class="separator:ga35aa72e7265b5ef2b747771603e19091"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaa9240c992691933a060a6e4bfbf699b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa9240c992691933a060a6e4bfbf699b9">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__axidmac__enums.html#ga6a5396b8cde76b34bf92edf6ee0cbd26">cy_en_axidmac_status_t</a> Cy_AXIDMAC_Channel_Init </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the AXIDMAC channel with a descriptor and other parameters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>A channel number.</td></tr>
    <tr><td class="paramname">config</td><td>The structure that has the initialization information for the channel.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status /ref cy_en_axidmac_status_t.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga82e2e0fbf38f4bc4c2b56a06a15809ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga82e2e0fbf38f4bc4c2b56a06a15809ff">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_AXIDMAC_Channel_DeInit </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the content of registers corresponding to the channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>A channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the AXIDMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a>(AXI_DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a>(AXI_DMAC, 0UL))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gae25a356409f49be5da036ca9380430cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae25a356409f49be5da036ca9380430cd">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_SetDescriptor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_SetDescriptor </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> const *&#160;</td>
          <td class="paramname"><em>descriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a descriptor as current for the specified AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">descriptor</td><td>This is the descriptor to be associated with the channel.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga59a71b72242ec040773d1e41d49ef26f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga59a71b72242ec040773d1e41d49ef26f">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_Enable </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables a AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga7fcb203a8a01a2f1bc28f6acbab761da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7fcb203a8a01a2f1bc28f6acbab761da">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_Disable </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables a AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the AXIDMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a>(AXI_DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a>(AXI_DMAC, 0UL))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga4efb1eb324529dd7ef7a3842a69ebc8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4efb1eb324529dd7ef7a3842a69ebc8d">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_SetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_SetPriority </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>priority</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The function is used to set a priority for the AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">priority</td><td>The priority to be set for the AXIDMAC channel. The allowed values are 0,1,2,3.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga869458a072653c8569d183a235c755b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga869458a072653c8569d183a235c755b7">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetPriority </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the priority of the AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The priority of the channel.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the AXIDMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a>(AXI_DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a>(AXI_DMAC, 0UL))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga81fb2d1336aa2b068e23d7332f08f60c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga81fb2d1336aa2b068e23d7332f08f60c">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetStatus </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the enable status of the AXIDMAC channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status of the channel.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Disable the AXIDMAC channel 0 if it&#39;s priority equals 3 */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (3UL == <a class="code" href="group__group__axidmac__channel__functions.html#ga869458a072653c8569d183a235c755b7">Cy_AXIDMAC_Channel_GetPriority</a>(AXI_DMAC, 0UL))</div><div class="line">    {    </div><div class="line">        <span class="keywordflow">if</span> (0UL != <a class="code" href="group__group__axidmac__channel__functions.html#ga81fb2d1336aa2b068e23d7332f08f60c">Cy_AXIDMAC_Channel_GetStatus</a>(AXI_DMAC, 0UL))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga7fcb203a8a01a2f1bc28f6acbab761da">Cy_AXIDMAC_Channel_Disable</a>(AXI_DMAC, 0UL);</div><div class="line">            <a class="code" href="group__group__axidmac__channel__functions.html#ga82e2e0fbf38f4bc4c2b56a06a15809ff">Cy_AXIDMAC_Channel_DeInit</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">            <span class="comment">/* if needed (if there is only channel used) the whole block can be disabled */</span></div><div class="line">            <a class="code" href="group__group__axidmac__block__functions.html#gad31f6c4eec5a8c4a10e454b43c15184c">Cy_AXIDMAC_Disable</a>(AXI_DMAC);</div><div class="line">        }</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaf4ea857b5838f1203025cf2a38408027"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4ea857b5838f1203025cf2a38408027">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentSrcAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void * Cy_AXIDMAC_Channel_GetCurrentSrcAddress </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the source address being used for the current transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the pointer to the source of transfer.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the arrays are not in use before reading/modifying */</span></div><div class="line">    </div><div class="line">    uint32_t src[16];</div><div class="line">    uint32_t dst[16];</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src != <a class="code" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">        ((<span class="keywordtype">void</span>*) dst != <a class="code" href="group__group__axidmac__channel__functions.html#gada1e3fd379f7a641c05fac4b3ed797e7">Cy_AXIDMAC_Channel_GetCurrentDstAddress</a>(AXI_DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Read the dst/modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gada1e3fd379f7a641c05fac4b3ed797e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gada1e3fd379f7a641c05fac4b3ed797e7">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentDstAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void * Cy_AXIDMAC_Channel_GetCurrentDstAddress </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the destination address being used for the current transfer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the pointer to the destination of transfer.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the arrays are not in use before reading/modifying */</span></div><div class="line">    </div><div class="line">    uint32_t src[16];</div><div class="line">    uint32_t dst[16];</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src != <a class="code" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">        ((<span class="keywordtype">void</span>*) dst != <a class="code" href="group__group__axidmac__channel__functions.html#gada1e3fd379f7a641c05fac4b3ed797e7">Cy_AXIDMAC_Channel_GetCurrentDstAddress</a>(AXI_DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Read the dst/modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab38ae9ffdbb45f3fbc4a4984fd238d5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab38ae9ffdbb45f3fbc4a4984fd238d5a">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentXloopIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetCurrentXloopIndex </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transfer X-loop index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the current transfer X-loop index.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the current indexes are greater than a desired </span></div><div class="line"><span class="comment">     * data source item before modifying.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div><div class="line">    uint32_t src[16][16];</div><div class="line">    uint32_t m = 6;</div><div class="line">    uint32_t x = 7;</div><div class="line">    uint32_t y = 8;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src == <a class="code" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (m &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga0158f30ec38c4675e652e01dcfe946ae">Cy_AXIDMAC_Channel_GetCurrentMloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (x &lt; <a class="code" href="group__group__axidmac__channel__functions.html#gab38ae9ffdbb45f3fbc4a4984fd238d5a">Cy_AXIDMAC_Channel_GetCurrentXloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (y &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga3c442925ba953620a1037390711d8136">Cy_AXIDMAC_Channel_GetCurrentYloopIndex</a>(AXI_DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga3c442925ba953620a1037390711d8136"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c442925ba953620a1037390711d8136">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentYloopIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetCurrentYloopIndex </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transfer Y-loop index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the current transfer Y-loop index.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the current indexes are greater than a desired </span></div><div class="line"><span class="comment">     * data source item before modifying.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div><div class="line">    uint32_t src[16][16];</div><div class="line">    uint32_t m = 6;</div><div class="line">    uint32_t x = 7;</div><div class="line">    uint32_t y = 8;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src == <a class="code" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (m &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga0158f30ec38c4675e652e01dcfe946ae">Cy_AXIDMAC_Channel_GetCurrentMloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (x &lt; <a class="code" href="group__group__axidmac__channel__functions.html#gab38ae9ffdbb45f3fbc4a4984fd238d5a">Cy_AXIDMAC_Channel_GetCurrentXloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (y &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga3c442925ba953620a1037390711d8136">Cy_AXIDMAC_Channel_GetCurrentYloopIndex</a>(AXI_DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0158f30ec38c4675e652e01dcfe946ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0158f30ec38c4675e652e01dcfe946ae">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentMloopIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetCurrentMloopIndex </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current transfer M-loop index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns the current transfer M-loop index.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Make sure the current indexes are greater than a desired </span></div><div class="line"><span class="comment">     * data source item before modifying.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    </div><div class="line">    uint32_t src[16][16];</div><div class="line">    uint32_t m = 6;</div><div class="line">    uint32_t x = 7;</div><div class="line">    uint32_t y = 8;</div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span> (((<span class="keywordtype">void</span>*) src == <a class="code" href="group__group__axidmac__channel__functions.html#gaf4ea857b5838f1203025cf2a38408027">Cy_AXIDMAC_Channel_GetCurrentSrcAddress</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (m &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga0158f30ec38c4675e652e01dcfe946ae">Cy_AXIDMAC_Channel_GetCurrentMloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (x &lt; <a class="code" href="group__group__axidmac__channel__functions.html#gab38ae9ffdbb45f3fbc4a4984fd238d5a">Cy_AXIDMAC_Channel_GetCurrentXloopIndex</a>(AXI_DMAC, 0UL)) &amp;&amp;</div><div class="line">                   (y &lt; <a class="code" href="group__group__axidmac__channel__functions.html#ga3c442925ba953620a1037390711d8136">Cy_AXIDMAC_Channel_GetCurrentYloopIndex</a>(AXI_DMAC, 0UL)))</div><div class="line">    {    </div><div class="line">        <span class="comment">/* Modify the src arrays content here */</span></div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gadae86ad4373a92d32981c00cf76b40bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadae86ad4373a92d32981c00cf76b40bd">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetCurrentDescriptor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> * Cy_AXIDMAC_Channel_GetCurrentDescriptor </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the descriptor that is active in the channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The pointer to the descriptor associated with the channel.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Disable a descriptor */</span></div><div class="line">    <span class="keywordflow">if</span> (&amp;descriptor != <a class="code" href="group__group__axidmac__channel__functions.html#gadae86ad4373a92d32981c00cf76b40bd">Cy_AXIDMAC_Channel_GetCurrentDescriptor</a>(AXI_DMAC, 0UL)) <span class="comment">/* Make sure it is not in use */</span></div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__descriptor__functions.html#ga56177d074cf689a003ab82355cfecb8c">Cy_AXIDMAC_Descriptor_DeInit</a>(&amp;descriptor);</div><div class="line">    }</div><div class="line">    </div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga912ed9c34fb9c2cc7f10b18b8c0db9a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga912ed9c34fb9c2cc7f10b18b8c0db9a8">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt status of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt status, see <a class="el" href="group__group__axidmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Need to check the  interrupt status regardless of whether it is enabled (masked) or not */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_AXIDMAC_INTR_MASK == <a class="code" href="group__group__axidmac__channel__functions.html#ga912ed9c34fb9c2cc7f10b18b8c0db9a8">Cy_AXIDMAC_Channel_GetInterruptStatus</a> (AXI_DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <span class="comment">/* The AXIDMAC channel 0 interrupt is pending */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gabd8c36aaea700ddb83cea48d9ff7aa88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd8c36aaea700ddb83cea48d9ff7aa88">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the interrupt status of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask, see <a class="el" href="group__group__axidmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Inside the interrupt service routine for AXIDMAC channel 0: */</span>    </div><div class="line">    uint32_t interrupt = <a class="code" href="group__group__axidmac__channel__functions.html#ga334962f73258ce7bf86e6490b9a5aaa1">Cy_AXIDMAC_Channel_GetInterruptStatusMasked</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__macros__interrupt__masks.html#gaef2eb77a07970ffadd71f8fc61b287e5">CY_AXIDMAC_INTR_COMPLETION</a> == interrupt)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert completion interrupt handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Check for other interrupts */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Clear interrupts */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gabd8c36aaea700ddb83cea48d9ff7aa88">Cy_AXIDMAC_Channel_ClearInterrupt</a>(AXI_DMAC, 0UL, interrupt);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab987427e7fb3cf03e3f8bb152335961f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab987427e7fb3cf03e3f8bb152335961f">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the interrupt for the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask. See <a class="el" href="group__group__axidmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, CY_AXIDMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gab987427e7fb3cf03e3f8bb152335961f">Cy_AXIDMAC_Channel_SetInterrupt</a>(AXI_DMAC, 0UL, <a class="code" href="group__group__axidmac__macros__interrupt__masks.html#gaef2eb77a07970ffadd71f8fc61b287e5">CY_AXIDMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for AXIDMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_AXIDMAC_INTR_MASK == <a class="code" href="group__group__axidmac__channel__functions.html#ga0e72ebb3bdd71b955406aa1cce4e9b23">Cy_AXIDMAC_Channel_GetInterruptMask</a>(AXI_DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0e72ebb3bdd71b955406aa1cce4e9b23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e72ebb3bdd71b955406aa1cce4e9b23">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt mask value of the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt mask value. See <a class="el" href="group__group__dmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, CY_AXIDMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gab987427e7fb3cf03e3f8bb152335961f">Cy_AXIDMAC_Channel_SetInterrupt</a>(AXI_DMAC, 0UL, <a class="code" href="group__group__axidmac__macros__interrupt__masks.html#gaef2eb77a07970ffadd71f8fc61b287e5">CY_AXIDMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for AXIDMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_AXIDMAC_INTR_MASK == <a class="code" href="group__group__axidmac__channel__functions.html#ga0e72ebb3bdd71b955406aa1cce4e9b23">Cy_AXIDMAC_Channel_GetInterruptMask</a>(AXI_DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaae533bc0532adfedc33656af521f6ace"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaae533bc0532adfedc33656af521f6ace">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an interrupt mask value for the specified channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt mask, see <a class="el" href="group__group__axidmac__macros__interrupt__masks.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable interrupts for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, CY_AXIDMAC_INTR_MASK);</div><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: Test the interrupt for channel 0 */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gab987427e7fb3cf03e3f8bb152335961f">Cy_AXIDMAC_Channel_SetInterrupt</a>(AXI_DMAC, 0UL, <a class="code" href="group__group__axidmac__macros__interrupt__masks.html#gaef2eb77a07970ffadd71f8fc61b287e5">CY_AXIDMAC_INTR_COMPLETION</a>);</div><div class="line">    <span class="comment">/* Now the interrupt should occur (if it is enabled, of course) */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable interrupts for AXIDMAC channel 0 if it is enabled */</span></div><div class="line">    <span class="keywordflow">if</span> (CY_AXIDMAC_INTR_MASK == <a class="code" href="group__group__axidmac__channel__functions.html#ga0e72ebb3bdd71b955406aa1cce4e9b23">Cy_AXIDMAC_Channel_GetInterruptMask</a>(AXI_DMAC, 0UL))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__axidmac__channel__functions.html#gaae533bc0532adfedc33656af521f6ace">Cy_AXIDMAC_Channel_SetInterruptMask</a> (AXI_DMAC, 0UL, 0UL);</div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga334962f73258ce7bf86e6490b9a5aaa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga334962f73258ce7bf86e6490b9a5aaa1">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_AXIDMAC_Channel_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The masked interrupt status. See <a class="el" href="group__group__axidmac__macros__interrupt__masks.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Inside the interrupt service routine for AXIDMAC channel 0: */</span>    </div><div class="line">    uint32_t interrupt = <a class="code" href="group__group__axidmac__channel__functions.html#ga334962f73258ce7bf86e6490b9a5aaa1">Cy_AXIDMAC_Channel_GetInterruptStatusMasked</a>(AXI_DMAC, 0UL);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__macros__interrupt__masks.html#gaef2eb77a07970ffadd71f8fc61b287e5">CY_AXIDMAC_INTR_COMPLETION</a> == interrupt)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert completion interrupt handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Check for other interrupts */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Clear interrupts */</span></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gabd8c36aaea700ddb83cea48d9ff7aa88">Cy_AXIDMAC_Channel_ClearInterrupt</a>(AXI_DMAC, 0UL, interrupt);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga35aa72e7265b5ef2b747771603e19091"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35aa72e7265b5ef2b747771603e19091">&#9670;&nbsp;</a></span>Cy_AXIDMAC_Channel_SetSwTrigger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_AXIDMAC_Channel_SetSwTrigger </td>
          <td>(</td>
          <td class="paramtype">AXI_DMAC_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The function is used to set a SW trigger for a channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the hardware AXIDMAC block.</td></tr>
    <tr><td class="paramname">channel</td><td>The channel number.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Channel must have been enabled before setting software trigger.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">  #define AXIDMAC_DESCRIPTOR CY_SECTION(&quot;.cy_socmem_data&quot;) cy_stc_axidmac_descriptor_t</span></div><div class="line">  <span class="comment">/* Scenario: Initialize a 2D descriptor with descriptors, src and dst are in SOCMEM*/</span></div><div class="line"><span class="preprocessor">  #define DATACNT (8UL)</span></div><div class="line">  CY_SECTION(<span class="stringliteral">&quot;.cy_socmem_data&quot;</span>) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> descriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__t.html">cy_stc_axidmac_descriptor_t</a> nextDescriptor;</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t src[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) uint32_t dst[DATACNT];</div><div class="line">  CY_SECTION(&quot;.cy_socmem_data&quot;) <a class="code" href="structcy__stc__axidmac__descriptor__config__t.html">cy_stc_axidmac_descriptor_config_t</a> descriptor_cfg =</div><div class="line">  {</div><div class="line">        .<a class="code" href="structcy__stc__dmac__descriptor__config__t.html#ab968eec67221ce9448bc3d7a51012232">retrigger</a> = <a class="code" href="group__group__axidmac__enums.html#ggaa7f457a18310c7bd887821d425c675b3af31c9d4a128661a3f2eb6adb25d7380f">CY_AXIDMAC_RETRIG_IM</a>,</div><div class="line">        .interruptType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .triggerOutType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .channelState = <a class="code" href="group__group__axidmac__enums.html#ggabecae08a8e709d79c27b4a13a1eeae30a67790522e6a4ba23b3c12118cbfa715e">CY_AXIDMAC_CHANNEL_ENABLED</a>,</div><div class="line">        .triggerInType = <a class="code" href="group__group__axidmac__enums.html#gga2fb7d8707fdd00ab19f6c25613b5041aa043c0d567ab56606297806af3cee8677">CY_AXIDMAC_DESCR</a>,</div><div class="line">        .descriptorType = <a class="code" href="group__group__axidmac__enums.html#ggac2a082bccd4add75b95c640c950ef382ab2c730977dc87903496084f240dac6dd">CY_AXIDMAC_2D_MEMORY_COPY</a>,</div><div class="line">        .srcAddress = &amp;src,</div><div class="line">        .dstAddress = &amp;dst,</div><div class="line">        .mCount=1U,</div><div class="line">        .srcXincrement = 1U,</div><div class="line">        .dstXincrement = 1U,</div><div class="line">        .xCount = DATACNT,</div><div class="line">        .srcYincrement = 0U,</div><div class="line">        .dstYincrement = 0U,</div><div class="line">        .yCount = 1UL,</div><div class="line">        .nextDescriptor = &amp;nextDescriptor,</div><div class="line">  };</div><div class="line"></div><div class="line"><span class="keywordtype">void</span> snippet_Cy_AXIDMAC_Enable(<span class="keywordtype">void</span>)</div><div class="line">{</div><div class="line">  <span class="comment">/* Scenario: Setup and enable the AXIDMAC channel 0 */</span></div><div class="line">    <a class="code" href="structcy__stc__axidmac__channel__config__t.html">cy_stc_axidmac_channel_config_t</a> channelConfig;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#aaf9ec3367eb91a563440106074b008fd">enable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a5ecb23aa7ccb35395648b87638ac633b">bufferable</a> = <span class="keyword">false</span>;</div><div class="line">    channelConfig.<a class="code" href="structcy__stc__axidmac__channel__config__t.html#a176924776881cbaf0d4990e0677f7d08">descriptor</a> = &amp;descriptor;</div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__descriptor__functions.html#ga4262d20e19180103a6f46f3e0028dc8e">Cy_AXIDMAC_Descriptor_Init</a>(&amp;descriptor, &amp;descriptor_cfg))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__axidmac__enums.html#gga6a5396b8cde76b34bf92edf6ee0cbd26aa49c31c356471da12d4afb1ae188b3c2">CY_AXIDMAC_SUCCESS</a> != <a class="code" href="group__group__axidmac__channel__functions.html#gaa9240c992691933a060a6e4bfbf699b9">Cy_AXIDMAC_Channel_Init</a>(AXI_DMAC, 0UL, &amp;channelConfig))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#gae25a356409f49be5da036ca9380430cd">Cy_AXIDMAC_Channel_SetDescriptor</a>(AXI_DMAC, 0UL, &amp;descriptor);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga4efb1eb324529dd7ef7a3842a69ebc8d">Cy_AXIDMAC_Channel_SetPriority</a>(AXI_DMAC, 0UL, 3UL);</div><div class="line">    <a class="code" href="group__group__axidmac__channel__functions.html#ga59a71b72242ec040773d1e41d49ef26f">Cy_AXIDMAC_Channel_Enable</a>(AXI_DMAC, 0UL);</div><div class="line">    <a class="code" href="group__group__axidmac__block__functions.html#ga99bc13b7bb7568c5a15c17352ceed8ae">Cy_AXIDMAC_Enable</a>(AXI_DMAC);</div><div class="line"></div><div class="line">}</div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
